#pragma once
#include "SFML/Window.hpp"
#include "SFML/Graphics.hpp"
#include <list>
class newGameMenu
{
public:
	enum MenuResult { Nothing, Local, AI, Remote, Go };  	
	enum GameMode { AIvsAI,LocalvsAI,LocalvsLocal,LocalvsRemote,AIvsRemote,RemotevsRemote }; 
	struct MenuItem
	{
		public:
			std::string name;
			sf::Rect<int> rect;
			MenuResult action;
			sf::Texture texture;
			sf::Sprite sprite;
			bool isClicked;
	};
	GameMode show(sf::RenderWindow& window);

private:
	void UpdateGraphics(sf::RenderWindow& window);
	GameMode GetMenuResponse(sf::RenderWindow& window);
	MenuResult HandleClick(int x, int y);
	std::list<MenuItem> _menuItems;
	sf::Sprite m_mainSprite;
};

